#include <iostream>
using namespace std;
int getmounthday(int year1, int month)
{

    int num1[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };
    if (year1 % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0)
    {
        num1[2] = 29;

    }
    return num1[month];
}
int yearsun(int year1, int year2)
{
    int cut = 0;
    if (year1 > year2)
    {
        cut = year1 - year2;
    }
    if (year1 < year2)
    {
        cut = year2 - year1;
    }
    int yearsum = 0;
    for (int i = 0; i < cut; i++)
    {
        int yearday = 365;
        if (year1 % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0)
        {
            yearday = 366;
        }
        yearsum += yearday;
    }
    return yearsum;
}

int monthsun(int a, int b)
{
    int year1 = a % 10000;
    int month1 = (a - year1) % 100;
    int year2 = b % 10000;
    int month2 = (b - year2) % 100;
    int cut = 0;
    int num1[13] = { 0,31,28,31,30,31,30,31,31,30,31,30,31 };

    if (month1 > month2)
    {
        cut = month1 - month2;
    }
    if (month1 < month2)
    {
        cut = month2 - month1;
    }
    int monthday = 0;
    for (int i = 0; i < cut; i++)
    {
        num1[2] = 28;
        if (year1 % 4 == 0 && year1 % 100 != 0 || year1 % 400 == 0)
        {
            num1[2] = 29;
        }
        monthday += getmounthday(int Data1)
    }
    return monthday;
}

int main() {
    int a;
    int b;
    cin >> a;
    int year1 = a % 10000;
    cin >> b;
    int year2 = b % 10000;
    int yearsum = yearsun(year1, year2);
    int monthsum = monthsun(a, b);
}